package com.yh.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author by 张晨光
 * @date 2024/1/24 9:59
 */
@Controller
@RequestMapping("to")
public class PageController {
//    @RequestMapping("index")
//    public String index(){
//        return "index";
//    }
    @RequestMapping("{page}")
    public String page(@PathVariable("page") String page){
        return page;
    }
}
